package com.aiks.single.singlemavenproject.common.exception;

/**
 * 自定义为空异常.
 *
 * @author <a href="mailto:aiks_yuan@163.com">yuanzhen</a>
 * @date 2021-06-21 09:36
 * @since 1.0.0
 **/
public final class NotNullException extends RuntimeException {
    
    /**
     * 内容拼接.
     * @param format string format
     * @param fieldNames field names
     */
    public NotNullException(final String format, final Object... fieldNames) {
        super(String.format(format, fieldNames));
    }
    
    public NotNullException(final String message) {
        super(message);
    }
    
    public NotNullException(final String message, final Throwable cause) {
        super(message, cause);
    }
    
    public NotNullException(final Throwable cause) {
        super(cause);
    }
    
    protected NotNullException(final String message, final Throwable cause, final boolean enableSuppression, final boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
